import request from '@/utils/request'

// 查询车辆报价列表
export function listQuote(query) {
  return request({
    url: '/scp/quote/list',
    method: 'get',
    params: query
  })
}

// 查询车辆报价详细
export function getQuote(quoteId) {
  return request({
    url: '/scp/quote/' + quoteId,
    method: 'get'
  })
}

// 新增车辆报价
export function addQuote(data) {
  return request({
    url: '/scp/quote',
    method: 'post',
    data: data
  })
}

// 修改车辆报价
export function updateQuote(data) {
  return request({
    url: '/scp/quote',
    method: 'put',
    data: data
  })
}

// 删除车辆报价
export function delQuote(quoteId) {
  return request({
    url: '/scp/quote/' + quoteId,
    method: 'delete'
  })
}
